Skip to main content

Class: PinningApi

PinningApi - object-oriented interface

Export

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new PinningApi(configuration?, basePath?, fetch?)

Parameters

NameTypeDefault value
configuration?Configurationundefined
basePathstringBASE_PATH
fetchFetchAPIportableFetch

Inherited from

BaseAPI.constructor

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:60

Properties

basePath

Protected basePath: string = BASE_PATH

Inherited from

BaseAPI.basePath

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:60


configuration

Protected configuration: Configuration

Inherited from

BaseAPI.configuration

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:58


fetch

Protected fetch: FetchAPI = portableFetch

Inherited from

BaseAPI.fetch

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:60

Methods

pinningPinsGet

pinningPinsGet(options?): Promise<Response>

This endpoint lists all pin status objects

Summary

List all pin status objects

Throws

Memberof

PinningApi

Parameters

NameTypeDescription
options?anyOverride http request option.

Returns

Promise<Response>

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:6559


pinningPinsPinidDelete

pinningPinsPinidDelete(pinid, options?): Promise<Response>

This endpoint deletes a pinned object.

Summary

Delete a pinned object

Throws

Memberof

PinningApi

Parameters

NameTypeDescription
pinidstringPin ID
options?anyOverride http request option.

Returns

Promise<Response>

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:6571


pinningPinsPinidGet

pinningPinsPinidGet(pinid, options?): Promise<Response>

This endpoint returns a pin status object.

Summary

Get a pin status object

Throws

Memberof

PinningApi

Parameters

NameTypeDescription
pinidstringcid
options?anyOverride http request option.

Returns

Promise<Response>

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:6583


pinningPinsPinidPost

pinningPinsPinidPost(pinid, options?): Promise<Response>

This endpoint replaces a pinned object.

Summary

Replace a pinned object

Throws

Memberof

PinningApi

Parameters

NameTypeDescription
pinidstringPin ID
options?anyOverride http request option.

Returns

Promise<Response>

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:6595


pinningPinsPost

pinningPinsPost(cid, name, options?): Promise<Response>

This endpoint adds a pin to the IPFS daemon.

Summary

Add and pin object

Throws

Memberof

PinningApi

Parameters

NameTypeDescription
cidstringcid
namestringname
options?anyOverride http request option.

Returns

Promise<Response>

Defined in

dev/estuary/estuary-clients/typescript-fetch/api.ts:6608